home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000000_icon-group-sender _Mon Apr 27 08:09:24 1998.msg
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA18112
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 27 Apr 1998 08:09:23 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA06896; Mon, 27 Apr 1998 08:09:20 -0700
Date: Fri, 24 Apr 1998 13:14:00 -0700
From: Gregg Townsend <gmt>
Message-Id: <9804242014.AA14229@hawk.CS.Arizona.EDU>
To: dpfj@globalnet.co.uk, icon-group
Subject: Re: Using icon pipe features
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1078
Most Unix utilities will buffer their output if it's connected to a pipe.
That means that even if you were able to open a two-way pipe to something
like "sed", you wouldn't be able to just write it a line and then read
the filtered result. You'd need to write enough lines to make sed flush
its buffer before you'd be able to read anything back. This, of course,
gets somewhat tricky, because sed can block if too much accumulates in
its output pipe. The tough part is that the buffering is going on
inside the forked process where you can't generally control it.
I've speculated that it might be possible to make something work using
pseudo-terminals (pttys), but I haven't tried it.
---------------------------------------------------------------------------
Gregg Townsend Gould-Simpson Building gmt@cs.arizona.edu
Staff Scientist 1040 E. 4th St. 32 13 45N 110 57 16W
Dept. of Computer Science PO Box 210077 tel: +1 520 621 4325
The University of Arizona Tucson, AZ 85721-0077 fax: +1 520 621 4246